#include "mainwindow.h"
#include "ui_mainwindow.h"

#include <QGLWidget>
#include <GL/gl.h>

MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) {
    ui->setupUi(this);

    /*
    QBrush b(Qt::SolidPattern);
    b.setColor(Qt::black);
    scene_.setBackgroundBrush(b);
    scene_.clear();
    */

    ui->gv->setViewport(new QGLWidget(QGLFormat(QGL::SampleBuffers | QGL::DoubleBuffer)));
    ui->gv->setScene(&scene_);
}

MainWindow::~MainWindow() {
    delete ui;
}
